package com.toby.ioc.iocprinciple;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @desc: 循环依赖
 * @author: jonathan.zhang
 * @date: 2019/7/24 22:28
 */
//@Component(value = "instanceA")
public class PrincipleInstanceA {
    @Autowired
    private PrincipleInstanceB instanceB;
//
    public void setInstanceB(PrincipleInstanceB instanceB) {
        this.instanceB = instanceB;
    }
}
